package com.project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.project.entity.OrderInfo;
import com.project.entity.Product;
import com.project.mapper.OrderInfoMapper;
import com.project.service.OrderInfoService;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2023-07-21
 */
@Service
public class OrderInfoServiceImp extends ServiceImpl<OrderInfoMapper, OrderInfo> implements OrderInfoService {

@Override
public IPage<OrderInfo> cutByItem(Integer pageNo, String factoryName, String startDate, String endDate) {
    return  this.baseMapper.cutByItem(new Page<>(pageNo,3),factoryName,startDate,endDate);
}

    @Override
    public List<Product> findById(Integer orderId) {
        return this.baseMapper.findById(orderId);
    }


}
